package com.xs.partnermatching.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误码
 *
 * @author lambor
 */
@AllArgsConstructor
@Getter
public enum ErrorCode {

    SUCCESS(0, "success", ""),
    PARAMS_ERROR(4000,"请求参数错误", ""),
    NULL_ERROR(4001, "请求参数为空", ""),
    NO_LOGIN(40100, "用户未登录", ""),
    NO_USER(40101, "用户不存在", ""),
    NO_AUTH(40101, "无权限", ""),
    SYSTEM_ERROR(50000, "系统内部异常", "");

    /**
     * 状态码
     */
    private final int Code;

    /**
     * 状态码信息
     */
    private final String Message;

    /**
     * 状态码描述（详情）
     */
    private final String description;

}
